package com.qiyu.tech.mysql;

import com.qiyu.datasource.annotation.AppDataSource;
import com.qiyu.datasource.enums.DatasourceConfigEnum;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @Author linhao
 * @Date created in 11:08 上午 2021/1/5
 */
@SpringBootApplication
@AppDataSource(defaultType = DatasourceConfigEnum.TEST_DB_01,datasourceType = {DatasourceConfigEnum.TEST_DB_01,DatasourceConfigEnum.TEST_DB_02})
public class MultiDataSourceApplication {

    public static void main(String[] args) {
        SpringApplication.run(MultiDataSourceApplication.class);
    }


}
